﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="news"
    targetNamespace="http://tempuri.org/news.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/news.xsd"
    xmlns:mstns="http://tempuri.org/news.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
    <xs:element name="NewsList">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="NewsItem" maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Title" type="xs:string" minOccurs="1" maxOccurs="1" />
                            <xs:element name="SubTitle" type="xs:string" minOccurs="0" maxOccurs="1" />
                            <xs:element name="Content" type="xs:string" minOccurs="1" maxOccurs="1" />
                        </xs:sequence>
                        <xs:attribute name="ID" type="xs:string" use="required" />
                        <xs:attribute name="PublishDate" type="xs:dateTime" use="required" />
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
